﻿using MiniErp.Entity.DataStreams.DOs.WeeklyReport;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.WeeklyReport
{

    /// <summary>
    /// 周数信息实体
    /// </summary>
    [Table("WeekInfo")]
    public class WeekInfo : BaseEntity
    {
        /// <summary>
        /// 周数信息编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int WeekInfoId { get; set; }
        /// <summary>
        /// 当前周数
        /// </summary>
        public int CurrentWeeks { get; set; }
        /// <summary>
        /// 当前年份
        /// </summary>
        public int CurrentYear { get; set; }
        #region 导航属性
        public virtual List<WeeklyInfo> weeklyInfos { get; set; }
        #endregion
    }
}
